Repository navigation
Upload the unit test coverage to Codacy - #157
Conversation
The unit-coverage job wrote clover.xml but never sent it, so Codacy showed no coverage. The job now downloads Codacy's coverage reporter 14.1.3, checks it against its SHA-512, and uploads the report for the commit Codacy analyzes (a pull request's head commit). It reads the repository token from the CODACY_PROJECT_TOKEN secret. Dependabot's and forks' pull requests skip the upload; a failed upload fails the job on pushes and is reported without blocking a pull request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for contributing to Optimizations ACE MC! Before we review:
Security Reminder
We'll review your PR soon. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Coverage variation | Report missing for 7f79abd1 |
| Diff coverage | ✅ ∅ diff coverage |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (7f79abd) Report Missing Report Missing Report Missing Head commit (1f5e0e9) 263 238 90.49% Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#157) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
The coverage issue template sent readers to Settings > Coverage. Codacy creates repository API tokens under the repository's Settings > API tokens, shows each one once, and expires it within a year. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
curl followed redirects to any protocol (SonarCloud S6506). The reporter download now uses --proto '=https', which also limits the redirects curl follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Send the unit test coverage to Codacy.
Why
The unit-coverage job wrote
clover.xmlbut never uploaded it, so Codacy's coverage for this repository stopped. No workflow ever uploaded it.What changes
A new step in the unit-coverage job, after the line-coverage check:
masterbranch on every run.clover.xmlfor the commit Codacy analyzes, which on a pull request is the head commit, not GitHub's merge commit. It reads the repository token from theCODACY_PROJECT_TOKENsecret.upload_coveragestage; the issue template explains what that stage means. On a pull request, the failure is reported without blocking the merge.Dependabot cannot update the reporter. A weekly workflow in EngineScript/EngineScript checks the pinned version in all five repositories and files an issue when a newer release is out.
Verification
🤖 Generated with Claude Code